package cn.kgc.itrip.test;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class test1 {
    public static void main(String[] args) {

         JedisPool jedisPool = new JedisPool();
         Jedis jedis = jedisPool.getResource();
         jedis.set("name","haha");
         String ss = jedis.get("name");
        System.out.println(ss);
         jedis.set("passwd","123456");
         jedis.expire("passwd",60);
         jedisPool.returnResource(jedis);

    }
}
